// pages/recommendDetail/search/search.js
Component({

  /**
   * 页面的初始数据
   */
  data: {
    searchText: ''
  },

  methods: {
    onTap: function (e) {
      const { searchText } = this.data
      console.log(searchText)
      this.triggerEvent('change', { searchText })
    },
    onChange: function (e) {
      const { detail: { value } } = e

      this.setData({
        searchText: value
      })
    }
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  
})